package com.itheima.stargraph.config;

import com.openai.client.OpenAIClient;
import com.openai.client.okhttp.OpenAIOkHttpClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Ollama配置类
 *
 * @Author mr.wu
 * @Date 2025-6-11 9:51
 */
@Configuration
public class BigModelConfig {

    /**
     * 声明OpenAI客户端实例
     * @return
     */
    @Bean
    public OpenAIClient openAIClient(){
        return OpenAIOkHttpClient.fromEnv();
    }
}
